import Chat from './pages/chat/chat'
import Socket from './pages/socket/socket'
import { Routes, Route, BrowserRouter, Navigate } from 'react-router-dom'
const App = () => {
  return (
    <BrowserRouter>
      <Routes>
        <Route path="/chat" element={<Chat></Chat>} />
        <Route path="/socket" element={<Socket></Socket>} />
        <Route path="*" element={<Navigate to="/chat"></Navigate>}></Route>
      </Routes>
    </BrowserRouter>
  )
}

export default App
